<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>项目查看</title>
  <link rel="stylesheet" href="../../../yl/index.css" />
  <!-- 布局样式 -->
  <link rel="stylesheet" href="../../../style/wangeditor.css" />
  <link rel="stylesheet" href="../../../yl/style.css" />
  <link rel="stylesheet" href="../../../yl/mobile.css" />
  <link rel="stylesheet" href="../../../yl/easyui.css" />
  <link rel="stylesheet" href="../../../yl/icon.css" />
  <style>
    .full-width-container {
      width: 100vw;
      margin-left: -20px;
      padding: 20px;
      box-sizing: border-box;
    }

    /* 容器基础样式 */
    .dia_y {
      width: 50%;
      margin: 1%;
      height: 400px;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
      /* border: 1px solid #ccc; /* 加上边框更贴近示例 */
      border-radius: 4px;
    }

    .dia_z {
      /* border: 2px solid #ccc; */
      width: 50%;
      margin: 1%;
      height: 400px;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
      /* 为子元素固定定位提供参考 */
    }

    .sticky-input {
      position: sticky;
      top: 0;
      /* 固定在容器顶部 */
      background: #fff;
      /* 背景色与容器一致 */
      z-index: 10;
      /* 确保输入框在树组件上方 */
      padding: 10px 0;
      /* 保持与原布局一致的间距 */
      border-bottom: 1px solid #eee;
      /* 可选：添加分隔线 */
    }

    .scroll-content {
      padding-top: 10px;
      /* 为固定输入框留出空间 */
      height: calc(100% - 50px);
      /* 滚动内容区域高度 */
    }

    /* 顶部统计栏 */
    .xuche {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px 15px;
      background-color: #f5f7fa;
      border-bottom: 1px solid #e4e7ed;
    }

    /* 多选框列表区域 */
    .checkbox-grid {
      padding: 10px 15px;
    }

    /* 调整多选框样式，让每个选项垂直分布更合理 */
    .el-checkbox {
      display: block;
      margin-bottom: 8px;
    }

    /* 滚动条样式（可选，让滚动条更美观） */
    .dia_y::-webkit-scrollbar {
      width: 6px;
    }

    .dia_y::-webkit-scrollbar-thumb {
      background-color: #c0c4cc;
      border-radius: 3px;
    }

    .dia_y::-webkit-scrollbar-track {
      background-color: #f5f7fa;
    }
  </style>
</head>

<body>
  <!-- <div id="app"> -->
  <div class="easyui-navpanel" id="app" v-cloak>
    <header>
      <div class="m-toolbar" v-cloak>
        <div class="m-title">项目查看</div>
      </div>
    </header>

    <div class="easyui-navpanel panel-body panel-body-nobottom panel-body-noborder" style="height: 3000px"
      id="MainTable" ref="MainTable"
      :data-options="JSON.stringify({ 'TableName': 'village_project', 'form': 'dataForm','primary_key':'Project_SerialNumber' })">

      <el-form :model="dataForm" ref="form" inline-message="true" style="width: 100%">
        <el-descriptions :column="1" size="large" border>



          <el-descriptions-item>
            <template #label>
              <div class="cell-item">项目类别</div>
            </template>
            <el-form-item prop="Project_Category_SerialNumber">

              <yl-select :options="Project_CategoryInfo"
                :props="{label:'Village_Project_Category',value:'Village_Project_Category_SerialNumber'}" clearable
                v-model="dataForm.Project_Category_SerialNumber" placeholder="请选择网格">
                <el-table-column prop="Village_Project_Category_SerialNumber" width="180" show-overflow-tooltip
                  label="类别编码"></el-table-column>
                <el-table-column prop="Village_Project_Category" show-overflow-tooltip label="类别名称"></el-table-column>

              </yl-select>
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">基本信息</div>
            </template>
            <el-form-item prop="Project_Main">
              <el-input v-model="dataForm.Project_Main" class="borderless-input" placeholder="请输入基本信息" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">建设内容</div>
            </template>
            <el-form-item prop="Construction_Content">
              <el-input v-model="dataForm.Construction_Content" class="borderless-input" placeholder="请输入建设内容" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">投资规模</div>
            </template>
            <el-form-item prop="Investment_Scale">
              <el-input v-model="dataForm.Investment_Scale" class="borderless-input" placeholder="请输入投资规模" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">申请人</div>
            </template>
            <el-form-item prop="Applicant_Name">
              <el-input v-model="dataForm.Applicant_Name" class="borderless-input" placeholder="请输入申请人" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">联系方式</div>
            </template>
            <el-form-item prop="Applicant_Contact">
              <el-input v-model="dataForm.Applicant_Contact" class="borderless-input" placeholder="请输入联系方式" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">身份证号</div>
            </template>
            <el-form-item prop="ID_Card_Number">
              <el-input v-model="dataForm.ID_Card_Number" class="borderless-input" placeholder="请输入身份证号" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">乡镇(街道)/村庄(社区)</div>
            </template>
            <el-form-item prop="Village_Number">
              <el-cascader class="borderless-input" v-model="dataForm.Village_Number" filterable
                :props="{value:'ProvinceNumber',label:'Province',children:'children'}" placeholder="请选择乡镇(街道)/村庄(社区)"
                :options="city" style="width: 100%"></el-cascader>
            </el-form-item>
          </el-descriptions-item>
          <el-descriptions-item>
            <template #label>
              <div class="cell-item">详细地址</div>
            </template>
            <el-form-item prop="Address">
              <el-input v-model="dataForm.Address" class="borderless-input" placeholder="请输入详细地址" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">资金来源</div>
            </template>
            <el-form-item prop="Source_Funds">
              <el-input v-model="dataForm.Source_Funds" class="borderless-input" placeholder="请输入资金来源" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">原因</div>
            </template>
            <el-form-item prop="Reason">
              <el-input v-model="dataForm.Reason" class="borderless-input" placeholder="请输入原因" />
            </el-form-item>
          </el-descriptions-item>

          <el-descriptions-item>
            <template #label>
              <div class="cell-item">是否竣工</div>
            </template>
            <el-form-item prop="Completion">



              <el-select v-model="dataForm.Completion" placeholder="请选择">
                <el-option v-for="item in CompletionInfo" :key="item.value" :label="item.label" :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
          </el-descriptions-item>


        </el-descriptions>
      </el-form>

      <div id="ChildTable">
        <div class="table_titel">
          <div class="titel">附件信息 </div>
        </div>

        <el-descriptions :column="1 " size="large" border
          :data-options="JSON.stringify({'TableName': 'village_project_attachment', 'form': 'childDataForm', 'ParentTableName': 'village_project'})">



          <el-descriptions-item>
            <template #label>
              <div class="cell-item">附件</div>
            </template>

            <el-table id="table" border max-height="450" tooltip-effect="dark" :data="childDataForm">
              <el-table-column min-width="180" prop="Attachment_SerialNumber" label="附件流水号"></el-table-column>

              <el-table-column min-width="180" prop="Attachment_Name" label="附件名称"></el-table-column>

              <el-table-column width="200" fixed="right" align="center" label="操作">
                <template v-slot="{row}">
                  <el-button type="primary" size="small" @click="preview(row)">
                    预览
                  </el-button>
                  <el-button type="success" size="small" @click="download(row)">
                    下载
                  </el-button>
                </template>
              </el-table-column>
            </el-table>

          </el-descriptions-item>




        </el-descriptions>

      </div>


    </div>
    <yl-online-preview :file-url="fileUrl" v-model="showDialog"></yl-online-preview>
    <footer class="botton-ann">
      <el-button @click="goBack">返回</el-button>
      <!-- <el-button type="primary" plain @click="handleSubmit1" :loading="loading">提交</el-button> -->
    </footer>
  </div>
</body>

<script src="../../../utils/utils.js"></script>
<script src="../../../utils/compressor.js"></script>
<script src="../../../utils/wangeditor.js"></script>
<script src="../../../config/config.js"></script>
<script src="../../../utils/mixins.js"></script>
<script src="../../../yl/vue.js"></script>
<script src="../../../utils/ID_Validity.js"></script>
<script src="../../../yl/index.js"></script>
<script src="../../../yl/zh-cn.mjs"></script>
<script src="../../../yl/index.iife.min.js"></script>
<script src="../../../yl/jquery.min.js"></script>
<script src="../../../utils/jquery.cookie.js"></script>
<script src="../../../yl/jquery.easyui.min.js"></script>
<script src="../../../yl/jquery.easyui.mobile.js"></script>
<script src="../../../yl/moment.min.js"></script>
<script src="../../../api/request.js"></script>

<script src="./js/add.js"></script>

</html>